home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 6 / Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso / 039a / tclib20.zip / FINANCE.H < prev    next >
C/C++ Source or Header  |  1988-12-03  |  1KB  |  31 lines

  1. /* TCHK 2.0 - Howard Kapustein's Turbo C library       12-3-88 */
  2. /* Copyright (C) 1988, Howard Kapustein.  All rights reserved. */
  3.  
  4. /* finance.h  -  header file for finance.c - financial functions */
  5.  
  6. #ifndef FINANCE_HEADER
  7. #define FINANCE_HEADER  1
  8.  
  9. #include <howard.h>
  10.  
  11. #define SLD(c,s,l)          straight_line_dep(c,s,l)
  12. #define SYD(c,s,l,p)        sum_year_digits_dep(c,s,l,p)
  13. #define DDB(c,l,p)          double_decline_bal_dep(c,l,p)
  14. #define ACC_SLD(c,s,l)      accum_dep(c,s,l,0,1)
  15. #define ACC_SYD(c,s,l,p)    accum_dep(c,s,l,p,2)
  16. #define ACC_DDB(c,l,p)      accum_dep(c,0,l,p,3)
  17.  
  18. /* function prototypes */
  19. double straight_line_dep(double cost, double salvage, int life);
  20. double sum_year_digits_dep(double cost, double salvage, int life, int period);
  21. double double_decline_bal_dep(double cost, int life, int period);
  22. double depreciation(double cost, double salvage, int life, int period, int dtype);
  23. double accum_dep(double cost, double salvage, int life, int period, int dtype);
  24. double PMT(double principal, double interest, int periods);
  25. double PV(double payment, double interest, int periods);
  26. double PVa(double payment, double interest, int periods);
  27. double FV(double payment, double interest, int periods);
  28. double FVa(double payment, double interest, int periods);
  29.  
  30. #endif              /* FINANCE_HEADER */
  31.